package com.yuan.blog.controller;

import com.yuan.blog.utils.R;
import jdk.nashorn.internal.runtime.logging.Logger;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: blog-core
 * @description:
 * @author: yuan_boss
 * @create: 2023-01-09 20:16
 **/
@RestController
@RequestMapping("error")
public class Error {

    @GetMapping("/test")
    public R test(){
        int a = 10/0;
        return R.ok();
    }
}
